package java2instruction;

public class Symbol {
        private String name;
        private Kind kind;
        private int blockLevel;
        private int value;
        private String type;

        public Symbol() {}
        
        public Symbol(String n, Kind k, int l, String t) {
                setName(n);
                setKind(k);
                setBlockLevel(l);
                setType(t);
        }
        
        public String getName() {
                return name;
        }
        
        public void setName(String n) {
                name = n;
        }
        
        public Kind getKind() {
                return kind;
        }
        public void setKind(Kind k) {
        	kind = k;
        	/*for (Kind k : Kind.values()) {
        		if (k.ordinal() == n) {
        			kind = k;
        		}
        	}*/
        }
        
        public int getBlockLevel() {
                return blockLevel;
        }
        
        public void setBlockLevel(int b) {
                blockLevel = b;
        }
        
        public int getValue() {
                return value;
        }

        public void setValue(int v) {
                value = v;
        }
        
        public String getType() {
                return type;
        }

        public void setType(String t) {
                this.type = t;
        }
}
